Sha256: f643808e6e3b5cb7ce26b39fa3398ef2fb9b7a4f2f9e7436fff8fa9809a0d9b2
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
Appcelerator.Module.Script={getName:function(){return"appcelerator script"},getDescription:function(){return"script widget"},getVersion:function(){return 1},getSpecVersion:function(){return 1},getAuthor:function(){return"Jeff Haynie"},getModuleURL:function(){return"http://www.appcelerator.org"},isWidget:function(){return true},getWidgetName:function(){return"app:script"},getAttributes:function(){return[{name:"on",optional:true,description:"May be used to execute the script's content."}]},execute:function(G,A,F,D,B){var E=A["code"];var C=E.toFunction(true);if(C==true){return }C.call({data:F||{},scope:D,version:B})},compileWidget:function(params){window.eval(params["code"])},buildWidget:function(A,C){var B=Appcelerator.Compiler.getHtml(A);B=B.replace(/\/\*.*\*\//g,"");if(B&&B.trim().length>0){C["code"]=String.unescapeXML(B);if(C["on"]){return{"position":Appcelerator.Compiler.POSITION_REMOVE,"functions":["execute"]}}else{return{"position":Appcelerator.Compiler.POSITION_REMOVE,"compile":true}}}return{"position":Appcelerator.Compiler.POSITION_REMOVE}}};Appcelerator.Core.registerModule("app:script",Appcelerator.Module.Script)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appcelerator-2.0.1.1 | appcelerator/templates/modules/app_script/app_script.js |