Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enyo.kind({
- name: "enyo.Draw",
- //kind: HeaderView,
- kind: enyo.Control,
- components:[
- //{ kind: "PageHeader", content: "Drag your finger in the box below to draw", flex: 0, style: "font-size: 16px" },
- //FINGER MOVEMENTS
- {kind: "Draw.control", ondragstart: "itemDragStart", ondragfinish: "itemDragFinish", onmousedown: "itemMousedown", onmouseup: "itemMouseup" },
- //ACTIVE WINDOW
- {kind: "ApplicationEvents", onWindowActivated: "windowActivatedHandler", onWindowDeactivated: "windowDeactivatedHandler"},
- //SLIDER SHITE
- {kind: "VFlexBox", tapHighlight: false, components:
- [{className: "slide-it", kind: "Slider", onChanging: "sliderChanging", onChange: "sliderChange", position:2 },
- //AJAX CALLING
- {name: "SendCans", kind: "WebService", onSuccess: "gotResultsSuccess", onFailure: "gotResultsFailure"}
- ]}
- ],
- //WINDOW ACTIVATION SHITE
- windowActivatedHandler: function() {
- //SET DEFAULT COLOR
- enyo.setCookie('color', '#000');
- //SET DEFAULT COLOR
- enyo.setCookie('width', 2);
- //PICKER
- DaPicker();
- //GET HANDLE
- DaHandle();
- },
- });
- ////////// handle.js /////////////////
- function DaHandle(){
- $('lala').innerHTML = 'chicken';
- var url = bas_tp;//UPDATE PARTY STUFF
- this.$.SendCans.url = url;
- this.$.SendCans.call();
- }
- //PROCESS OLE AJAX
- gotResultsSuccess: function(inSender, inResponse) {
- //this.results = inResponse.responseData.results.title;
- //this.results = inResponse.status.handle;
- //this.$.list.refresh();
- //this.log(enyo.json.parse(this.results));
- $('lala').innerHTML = 'hello';
- }
- /*gotResultsFailure: function(inSender, inResponse) {
- this.$.errorMessage.setContent('Search Failed')
- this.$.errorDialog.open();
- }
Add Comment
Please, Sign In to add comment