This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TableViewController.swift | |
// | |
// Created by Shin Morichika on 2016/09/28. | |
// Copyright © 2016年 covered. All rights reserved. | |
// | |
import UIKit | |
import Bond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ti.App = {}; | |
Ti.API = {}; | |
Ti.App._listeners = {}; | |
Ti.App._listener_id = 1; | |
Ti.App.id = Ti.appId; | |
Ti.App._xhr = XMLHttpRequest; | |
Ti._broker = function (module, method, data) { | |
try { | |
var url = 'app://' + Ti.appId + '/_TiA0_' + Ti.pageToken + '/' + module + '/' + method + '?' + Ti.App._JSON(data, 1); | |
var xhr = new Ti.App._xhr(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @_yagiさんのhttps://gist.github.com/3039968にインスパイアされてJsonDBで作ってみた | |
mix = () -> | |
child = {} | |
for arg in arguments | |
for prop of arg | |
if arg.hasOwnProperty prop | |
child[prop] = arg[prop] | |
return child |