Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / options / language_dictionary_overlay.js
index 57d549e..61e351a 100644 (file)
@@ -26,7 +26,7 @@ cr.define('options', function() {
 
     /**
      * A list of words in the dictionary.
-     * @type {DictionaryWordsList}
+     * @type {options.dictionary_words.DictionaryWordsList}
      * @private
      */
     wordList_: null,
@@ -49,8 +49,9 @@ cr.define('options', function() {
     initializePage: function() {
       Page.prototype.initializePage.call(this);
 
-      this.wordList_ = $('language-dictionary-overlay-word-list');
-      DictionaryWordsList.decorate(this.wordList_);
+      var wordList = $('language-dictionary-overlay-word-list');
+      DictionaryWordsList.decorate(wordList);
+      this.wordList_ = assertInstanceof(wordList, DictionaryWordsList);
       this.wordList_.onWordListChanged = function() {
         this.onWordListChanged_();
       }.bind(this);