Permalink
Browse files

[cleanup] js-warnings: No more "undefined properties". Remaining 9 wa…

…rnings.

This warning is now turned into an error in the checker passed options.
  • Loading branch information...
1 parent 607c286 commit 97f2e433725ba913c423803c5d8ecd8e4273195e @fpessaux fpessaux committed Jun 24, 2011
Showing with 43 additions and 1 deletion.
  1. +5 −1 build_rules.ml
  2. +38 −0 opabsl/jsbsl/selection_ext_bsldom.extern.js
View
@@ -396,7 +396,7 @@ let google_closure_compiler_options =
"deprecated" ;
"fileoverviewTags" ;
"invalidCasts" ;
- (* "missingProperties" ; *)
+ "missingProperties" ;
(* "nonStandardJsDocs" ; *)
"strictModuleDepCheck" ;
"undefinedVars" ;
@@ -412,6 +412,7 @@ rule "Client lib JS validation"
"qmlcps/qmlCpsClientLib.js" ::
"opabsl/jsbsl/jquery_ext_bslanchor.extern.js" ::
"opabsl/jsbsl/jquery_ext_jQueryExtends.extern.js" ::
+ "opabsl/jsbsl/selection_ext_bsldom.extern.js" ::
"opabsl/jsbsl/jquery_ext_1.6.1.externs.js" ::
(tool_deps "jschecker.jar") @
(tool_deps "jschecker_externals.js") @
@@ -435,6 +436,7 @@ rule "Client lib JS validation"
A"--js" :: A clientlib ::
A"--js" :: A "opabsl/jsbsl/jquery_ext_bslanchor.extern.js" ::
A"--js" :: A "opabsl/jsbsl/jquery_ext_jQueryExtends.extern.js" ::
+ A"--js" :: A "opabsl/jsbsl/selection_ext_bsldom.extern.js" ::
A"--js" :: A "opabsl/jsbsl/jquery_ext_1.6.1.externs.js" ::
A"--js" :: A"qmlcps/qmlCpsClientLib.js" ::
[]
@@ -457,6 +459,7 @@ rule "opa-bslgenMLRuntime JS validation"
@ js_pp_bsl
@ [ "opabsl/jsbsl/jquery_ext_bslanchor.extern.js" ;
"opabsl/jsbsl/jquery_ext_jQueryExtends.extern.js" ;
+ "opabsl/jsbsl/selection_ext_bsldom.extern.js" ;
"opabsl/jsbsl/jquery_ext_1.6.1.externs.js" ;
"opabsl/opabslgenJSkeys.js" ]
)
@@ -479,6 +482,7 @@ rule "opa-bslgenMLRuntime JS validation"
A"--externs" :: (get_tool "jschecker_cpsclientlib.js") ::
A"--externs" :: A "opabsl/jsbsl/jquery_ext_bslanchor.extern.js" ::
A"--externs" :: A "opabsl/jsbsl/jquery_ext_jQueryExtends.extern.js" ::
+ A"--externs" :: A "opabsl/jsbsl/selection_ext_bsldom.extern.js" ::
A"--externs" :: A "opabsl/jsbsl/jquery_ext_1.6.1.externs.js" ::
A"--js_output_file" :: A"opabsl/js_validation/bsl.js" ::
google_closure_compiler_options @
@@ -0,0 +1,38 @@
+/*
+ Copyright © 2011 MLstate
+
+ This file is part of OPA.
+
+ OPA is free software: you can redistribute it and/or modify it under the
+ terms of the GNU Affero General Public License, version 3, as published by
+ the Free Software Foundation.
+
+ OPA is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
+ more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with OPA. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/*
+ @author Francois Pessaux
+*/
+
+/**
+ This file provides prototypes for function added by side effect to Selection
+ by /opabsl/jsbsl/bslDom.js.
+ This code is not intended to be compiled and included in any binary, it only
+ serves to the Google Closure Compiler checker by giving it prototypes, hence
+ avoiding warnings.
+ In case the Google Closure Compiler checker is not more used by the build
+ system, this source file can be discarded from the Opa sources tree.
+ This source file is involved by the build system build_rules.ml for 2 rules:
+ - rule "Client lib JS validation"
+ - rule "opa-bslgenMLRuntime JS validation"
+**/
+
+
+
+Selection.prototype.parentElement = function () { } ;

0 comments on commit 97f2e43

Please sign in to comment.